/**
   Class for ProductPriceScheme 
   Comp 474 RRS System
   @author Shipeng Liu
   @version 1.01 2008-11-23
*/
package rrs;
import java.util.ArrayList;

public class ProductPriceScheme extends PriceScheme {
private ArrayList<ProductPriceSchemeRow> rows;
private int ID;

//get price by rowNumber
protected double getPrice(int rowNumber) {
	ProductPriceSchemeRow row=rows.get(rowNumber);
	int nextRow=row.getNext();
	return row.getPrice();
	}

//Constructor
public ProductPriceScheme(int InventoryID,ArrayList<ProductPriceSchemeRow> rows){
		this.ID=InventoryID;
		this.rows=rows;
	}

@Override
protected double getPrice() {
		return 0;
	}

}
